package com.ziyueyuwen.xiniao.bean;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author jun 2018/10/27
 */
public class UserAO {
    @NotNull(message = "userId 不能为空")
    private String userId;

    @NotNull(message = "userName userId 不能为空")
    @Length(min = 5, max = 10, message = "userName 参数长度不合法")
    private String userName;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
